/*
	Copyright 2009 Omer Saatcioglu
	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

		http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.

	$Author$
	$Revision$
	$LastChangedDate$
   
 */

package com.saatcioglu.android.guessthenumber;

import java.util.ArrayList;

import android.content.SharedPreferences;

final public class SMBGuesstheNumber {

	static final public int NBUTTON_ENABLED = 12;
	static final public int NBUTTON_STATE = 10;
	static final public int MASTER_LEVEL_NUMBER = 75;

	static public SharedPreferences generalSettings;
	static public SharedPreferences gameSettings;
	static public SharedPreferences masterSettings;
	
	static public boolean bShowElapsedTime;
	static public boolean bShowTotalShots;
	static public boolean bDisplayFlagList;
	static public String strPlayerName;
	static public int nDigits;
	static public int nMaxShots;
	static public int nMaxTime;

	static public int nCurrentLevel;
	static public int nActiveDigits;
	static public int nActiveMaxShots;
	static public int nActiveMaxTime;

	static public boolean isPreferencesChanged;

	static public boolean isGameStarted;
	static public String mEditorText;
	static public ArrayList<String> mStrings = new ArrayList<String>();
	static public int intCounter;
	static public int theDigitsPressed;
	static public int[] arrintPrevButtons;
	static public long lngElapsedTime;
	static public boolean[] arrisBtnNumberEnabled = new boolean[NBUTTON_ENABLED];
	static public int[] arrintBtnNumberStates = new int[NBUTTON_STATE];
	static public int intSecretNumber;

	static public int[][] arrLevels = {
		{3,	0,	0},
		{3,	11,	0},
		{3,	11,	120},
		{3,	11,	110},
		{3,	11,	100},
		{3,	11,	90},
		{3,	11,	70},
		{3,	9,	0},
		{3,	9,	100},
		{3,	9,	90},
		{3,	9,	80},
		{3,	9,	70},
		{3,	9,	60},
		{3,	7,	0},
		{3,	7,	80},
		{3,	7,	70},
		{3,	7,	60},
		{3,	7,	50},
		{3,	7,	40},
		{3,	5,	0},
		{3,	5,	60},
		{3,	5,	50},
		{3,	5,	40},
		{3,	5,	30},
		{3,	5,	25},
		{4,	0,	0},
		{4,	11,	0},
		{4,	11,	160},
		{4,	11,	150},
		{4,	11,	140},
		{4,	11,	130},
		{4,	11,	120},
		{4,	9,	0},
		{4,	9,	140},
		{4,	9,	130},
		{4,	9,	120},
		{4,	9,	110},
		{4,	9,	100},
		{4,	7,	0},
		{4,	7,	120},
		{4,	7,	110},
		{4,	7,	100},
		{4,	7,	90},
		{4,	7,	80},
		{4,	5,	0},
		{4,	5,	100},
		{4,	5,	90},
		{4,	5,	80},
		{4,	5,	70},
		{4,	5,	60},
		{5,	0,	0},
		{5,	11,	0},
		{5,	11,	280},
		{5,	11,	270},
		{5,	11,	260},
		{5,	11,	250},
		{5,	11,	240},
		{5,	9,	0},
		{5,	9,	260},
		{5,	9,	250},
		{5,	9,	240},
		{5,	9,	230},
		{5,	9,	220},
		{5,	7,	0},
		{5,	7,	240},
		{5,	7,	230},
		{5,	7,	220},
		{5,	7,	210},
		{5,	7,	200},
		{5,	5,	0},
		{5,	5,	220},
		{5,	5,	210},
		{5,	5,	200},
		{5,	5,	190},
		{5,	5,	180}
		};

	private SMBGuesstheNumber() {
		// the class is final
	}

}
